package uniandes.moviles.antid.mundo;

import java.util.Date;

/**
 * Clase que representa un ejercicio en el sistema
 * @author estudiante
 *
 */
public class Exercise 
{
	/**
	 * Atributo que reprenta el score obtenido al realizar el ejercicio
	 */
	private int score;
	
	/**
	 * Atributo que representa el type al que pertenece la clase.
	 */
	private String type;
	
	
	/**
	 * La fecha en la cual se va a asignar el ejercicio.
	 */
	private Date dueDate;
	
	
	
	
	/**
	 * Creates a new exercise.
	 * @param type The type of the new exercise.
	 * @param dueDate The due date of the new exercise.
	 */
	public Exercise(String type, Date assignedDate)
	{
		this.type = type;
		this.dueDate = assignedDate;
		this.score = 0;
	}
	
	/**
	 * Returns the due date of the exercise.
	 * @return <b>dueDate</b> The due date of the exercise.
	 */
	public Date getDueDate() {
		return dueDate;
	}
	
	/**
	 * Sets the due date of the exercise.
	 * @param dueDate The date to set.
	 */
	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}	
	
	/**
	 * Returns the scored obtained after completing the exercise.
	 * @return score.
	 */
	public int getScore(){
		return score;
	}

	/**
	 * Sets the score obtained after completing the exercise.
	 * @param score The score to set.
	 */
	public void setScore(int score) {
		this.score = score;
	}

	/**
	 * Returns the exercise's type.
	 * @return <b>type</b> The exercise-s type.
	 */
	public String getType() {
		return type;
	}

	/**
	 * Sets the type of exercise.
	 * @param type The type of exercise to set.
	 */
	public void setType(String type) {
		this.type = type;
	}	
	
}
